/* MBTI Test Styles */
@import '../styles/themes.scss';

/* 全局变量 */
page {
  background-color: var(--bg-color);
  color: var(--text-primary-color);
}

.mbti-page {
  background-color: var(--bg-color);
  min-height: 100vh;
  padding-bottom: 100px;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Start Page */
.start-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 30px;
  min-height: 100vh;
  box-sizing: border-box;
}

.logo {
  margin-top: 40px;
  width: 200px;
  height: auto;
  align-self: center;
}

.title {
  font-size: 40px;
  font-weight: 600;
  color: var(--text-primary-color);
  margin-top: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.subtitle {
  font-size: 32px;
  font-weight: 400;
  color: var(--text-secondary-color);
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
  padding: 0 30px;
  line-height: 1.6;
}

.start-btn {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: var(--button-bg);
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 500;
  border-radius: 8px;
  align-self: center;
  margin-top: 60px;
  margin-bottom: 80px;
  transition: background-color 0.15s;
}

.start-btn:active {
  opacity: 0.9;
}

.start-btn[loading=true],
.start-btn[disabled=true] {
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.8);
}

.privacy-tip {
  font-size: 28px;
  color: var(--text-secondary-color);
  line-height: 1.4;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
}

/* Question Container */
.question-container {
  padding: 20px 0;
}

/* Progress Bar */
.progress-bar-container {
  width: calc(100% - 32px);
  height: 8px;
  background-color: #EEE;
  border-radius: 4px;
  margin: 20px 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Question Content */
.question-number {
  display: block;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary-color);
  margin: 16px;
}

.question-text {
  display: block;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary-color);
  padding: 0 16px 24px;
}

/* Options */
.options-container {
  margin: 20px 0;
}

.option-btn {
  width: calc(100% - 32px);
  margin: 8px 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--secondary-color);
  text-align: left;
}

.option-text {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary-color);
}

.option-btn.selected {
  background: var(--primary-color);
}

.option-btn.selected .option-text {
  color: #FFFFFF;
}

/* Navigation Buttons */
.nav-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.nav-btn {
  width: 50%;
  height: 80px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 500;
}

.prev-btn {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--accent-color);
  color: #FFFFFF;
}

.next-btn {
  background: var(--primary-color);
  color: #FFFFFF;
}

.nav-btn[disabled] {
  background: #CCCCCC;
  color: #999999;
}

/* Result Container */
.result-container {
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-container .privacy-tip {
  margin-top: 40px;
  margin-bottom: 20px;
}

.result-chart {
  width: 300px;
  height: 300px;
  margin: 30px auto;
}

.result-canvas {
  width: 300px;
  height: 300px;
}

.result-type {
  font-size: 40px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 16px 0;
  text-align: center;
}

.result-explanation {
  font-size: 28px;
  color: var(--text-secondary-color);
  line-height: 1.6;
  padding: 0 16px;
  text-align: center;
  margin-bottom: 30px;
}

/* 维度表格样式 */
.dimension-table {
  width: 100%;
  margin: 20px 0 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--card-bg-color);
  font-size: 24px;
}

.table-row {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #EEEEEE;
}

.table-row:last-child {
  border-bottom: none;
}

.table-header {
  background-color: #F5F5F5;
  font-weight: 500;
}

.table-cell {
  padding: 15px 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dimension-name {
  font-weight: 500;
}

.dimension-result {
  font-weight: 600;
  font-size: 26px;
}

/* 百分比条样式 */
.percentage-bar {
  width: 100%;
  height: 16px;
  background-color: #EEEEEE;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.percentage-fill {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  transition: width 0.5s ease;
}

.e-fill {
  background-color: #FF6B6B; /* 红色 */
}

.s-fill {
  background-color: #FFCE54; /* 黄色 */
}

.t-fill {
  background-color: #4D96FF; /* 蓝色 */
}

.j-fill {
  background-color: #48C0A3; /* 绿色 */
}

/* Action Buttons */
.action-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.action-btn {
  width: 44%;
  height: 64px;
  border-radius: 8px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn {
  background: #1AAD19; /* 使用固定颜色值 */
  color: #FFFFFF;
}

.retake-btn {
  background: #F5F5F5;
  color: var(--color-text-main);
}

/* 详细说明按钮 */
.detail-btn {
  width: 90%;
  height: 64px;
  border-radius: 8px;
  font-size: 30px;
  background: #4D96FF; /* 蓝色 */
  color: #FFFFFF;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
